<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Pulog.Models.Link>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Link</h2>

    <table>
        <tr>
            <th></th>
            <th>
                linkID
            </th>
            <th>
                linkName
            </th>
            <th>
                linkDescription
            </th>
            <th>
                linkURL
            </th>
            <th>
                linkOrder
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%= Html.ActionLink("Edit", "EditLink", new { id=item.linkID }) %> |
                <%= Html.ActionLink("Details", "Details", new { id=item.linkID })%>
            </td>
            <td>
                <%= Html.Encode(item.linkID) %>
            </td>
            <td>
                <%= Html.Encode(item.linkName) %>
            </td>
            <td>
                <%= Html.Encode(item.linkDescription) %>
            </td>
            <td>
                <%= Html.Encode(item.linkURL) %>
            </td>
            <td>
                <%= Html.Encode(item.linkOrder) %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%= Html.ActionLink("Add New Link", "AddLink") %>
    </p>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>

